package com.apache.portal.common.vo;

import java.util.Hashtable;

/**
 * description:  存储上传文件实时的进度信息
 * 参考： https://blog.csdn.net/dcrose/article/details/79563969
 * @author fpchang 创建时间：2018-10-9
 */
public class ProgressSingleton {
    //为了防止多用户并发，使用线程安全的Hashtable
      private static Hashtable<Object, Object> table = new Hashtable<>();

      public static void put(Object key, Object value){
         table.put(key, value);
//          System.out.println(table);
      }

      public static Object get(Object key){
         return table.get(key);
      }

      public static Object remove(Object key){
         return table.remove(key);
      }
}
